package com.telit.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


/**
 * @Auther amy
 * @Describe 日常任务扩展类
 */
@Data
public class NormalTaskDTO {

    @ApiModelProperty(value = "护林员/飞手id")
    @NotNull(message = "护林员id不能为空")
    private Long forestkeeperId;

    @ApiModelProperty(value = "任务类型")
    @NotBlank(message = "任务类型不能为空")
    private String type;

    @ApiModelProperty(value = "任务状态,默认是2(任务中)")
    private String status = "2";

    @ApiModelProperty(value = "巡护id")
//    @NotBlank(message = "巡护轨迹id不能为空")
    private String trackId;

    @ApiModelProperty(value = "任务执行人名称")
    private String foresterName;

    @ApiModelProperty(value = "任务标题")
    private String title;

    @ApiModelProperty(value = "任务内容")
    private String content;

    @ApiModelProperty(value = "任务开始时间")
    @NotNull(message = "主任务时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
}
